#ifndef WINDOWXP_H
#define WINDOWXP_H

#include <QMainWindow>
#include <QMenuBar>  //菜单栏
#include <QToolBar>  //工具栏
#include <QDockWidget>  //浮动面板
#include <QStatusBar>   //状态栏
#include <QMenu>
#include <QTextEdit>    //多行文本框
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>

class FunWindow : public QWidget{
    Q_OBJECT
public:
    FunWindow(QWidget* p = nullptr):QWidget(p){
        QVBoxLayout *mainlayout = new QVBoxLayout(this);
        QHBoxLayout *topLayout = new QHBoxLayout;

        QPushButton *btn1 = new QPushButton(QIcon(":/img/account.png"),"");
        QPushButton *btn2 = new QPushButton(QIcon(":/img/account.png"),"");

        topLayout->addWidget(btn1);
        topLayout->addWidget(btn2);

        mainlayout->addLayout(topLayout);
        mainlayout->addWidget(new QTextEdit);
    }
};

class WindowXP : public QMainWindow
{
    Q_OBJECT
public:
    explicit WindowXP(QWidget *parent = nullptr);
    QMenuBar* m_Bar;
    QStatusBar *s_Bar;
    QMenu   * file_menu;
    QMenu   * edit_menu;

    QTextEdit *edit;
    void initWindow();

    QToolBar *t_Bar1;
signals:

public slots:
    void openNewWindow();
    void customUndo();
};

#endif // WINDOWXP_H
